<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
    <title>JSP - Hello World</title>
</head>
<body>
<h1><%= "Hello World!" %>
</h1>
<br/>
<input type="text" name="userName" >

</body>
<script>
    var s = document.getElementsByName("userName")
    <%
        
    %>
</script>
</html>